/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.stat;

import android.text.TextUtils;
import org.json.JSONObject;

public class p {
    private static String h = "UseBean";
    public String a = "";
    public String b = "";
    public int c = -1;
    public String d = "";
    public int e = -1;
    public long f = 0L;
    public String g = "";

    public p() {}

    public p(String paramString, int paramInt1, int paramInt2) {
        this.a = paramString;
        this.c = paramInt1;
        this.e = paramInt2;
        this.f = ai.o();
    }

    public p(String paramString1, int paramInt1, String paramString2, int paramInt2) {
        this.a = paramString1;
        this.c = paramInt1;
        this.d = paramString2;
        this.e = paramInt2;
        this.f = ai.o();
    }

    public p(String paramString1, String paramString2, int paramInt1, int paramInt2) {
        this.a = paramString1;
        this.b = paramString2;
        this.c = paramInt1;
        this.e = paramInt2;
        this.f = ai.o();
    }

    public p(String paramString1, String paramString2, int paramInt1, String paramString3, int paramInt2) {
        this.a = paramString1;
        this.b = paramString2;
        this.c = paramInt1;
        this.d = paramString3;
        this.e = paramInt2;
        this.f = ai.o();
    }

    public p(String paramString1, int paramInt1, int paramInt2, String paramString2) {
        this.a = paramString1;
        this.c = paramInt1;
        this.e = paramInt2;
        this.f = ai.o();
        this.g = paramString2;
    }

    public p(String paramString1, int paramInt1, String paramString2, int paramInt2, String paramString3) {
        this.a = paramString1;
        this.c = paramInt1;
        this.d = paramString2;
        this.e = paramInt2;
        this.f = ai.o();
        this.g = paramString3;
    }

    public p(String paramString1, String paramString2, int paramInt1, int paramInt2, String paramString3) {
        this.a = paramString1;
        this.b = paramString2;
        this.c = paramInt1;
        this.e = paramInt2;
        this.f = ai.o();
        this.g = paramString3;
    }

    public p(String paramString1, String paramString2, int paramInt1, String paramString3, int paramInt2,
            String paramString4) {
        this.a = paramString1;
        this.b = paramString2;
        this.c = paramInt1;
        this.d = paramString3;
        this.e = paramInt2;
        this.f = ai.o();
        this.g = paramString4;
    }

    public JSONObject a() {
        JSONObject localJSONObject = new JSONObject();
        try {
            if (!(TextUtils.isEmpty(this.a)))
                localJSONObject.put("name", this.a);
            if (!(TextUtils.isEmpty(this.b)))
                localJSONObject.put("type", this.b);
            if (this.c >= 0)
                localJSONObject.put("number", this.c);
            if (!(TextUtils.isEmpty(this.d)))
                localJSONObject.put("coinType", this.d);
            if (this.e >= 0)
                localJSONObject.put("coin", this.e);
            if (this.f >= 0L)
                localJSONObject.put("ts", this.f);
            if (!(TextUtils.isEmpty(this.g)))
                localJSONObject.put("level", this.g);
        } catch (Exception localException) {
            x.a(h, localException);
        } catch (Error localError) {
            x.a(h, localError);
        }
        return localJSONObject;
    }
}